<?php

 include_once('../../includes/fk_php/Connections/connection.php');
   switch($lenguaje): // Selecion de lenguaje de la apliacion
	case 'es': include_once('../../includes/fk_php/lenguaje_es(v2).php'); $DB_lenguaje = 'nom_es';
		break;
	case 'en': $DB_lenguaje = 'nom_en'; break;
  endswitch;
  
  
	$nomcentro = $_POST['nomcentro'];
    $url = $_POST['url'];
	$idcentro = $_POST['idcentro'];
	
		$sql = "CALL UPDATE_SUB_MENUS($idcentro,'$nomcentro','$url')";
		if (!$result = $connection->query($sql)) {
			echo "2" ;
		}else{
			echo "1";
		}		
?>